package day2;

/**
 * @author oldliu
 * @since 1.0
 */
public class JuiceTest {
    public static void main(String[] args) {
        System.out.println("买了一台榨汁机");
        JuiceMaker m=new JuiceMaker();
        m.brand="九阳榨汁机";
        m.color="黄";
        m.watt=45;
        //m.fruit="梨子";
        String f="凤梨";
        String beizi= m.makeJuice(f);//接受方法的返回值
        System.out.println("老刘喝到了"+beizi);
        //m.fruit="菠萝";
        beizi=m.makeJuice("菠萝");
        System.out.println("老刘喝到了"+beizi);

        String beizi2=m.makeJuice2("榴莲","芒果");
        System.out.println("孙楠楠喝到了"+beizi2);
    }
}
